package com.kelvem.saas.workbanch.ontology.order.handle.payment;

import com.kelvem.saas.workbanch.fsm.core.EventContext;
import com.kelvem.saas.workbanch.fsm.handle.Handle;
import com.kelvem.saas.workbanch.ontology.order.model.OrderPaymentEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author kelvem
 */
@Service
@Slf4j
public class ConvRequest2PaymentHandle extends Handle {
    
    @Override
    public void execute() {
    
        OrderPaymentEntity payment = (OrderPaymentEntity) EventContext.getRequest();
        EventContext.addContext(payment);
        log.info("Handle[" + getName() + "] " + EventContext.getContext());
    }
}
